Skip to content

Иванова Алина 28.11. Задание "Обход в глубину"#10

Open
ialina07 wants to merge 1 commit intomainfrom
hm8
Open

Иванова Алина 28.11. Задание "Обход в глубину"#10
ialina07 wants to merge 1 commit intomainfrom
hm8

Conversation

@ialina07
Copy link
Owner

No description provided.

visited.append(vertex)
# Добавляем соседей в стек в обратном порядке
# для сохранения естественного порядка обхода
for neighbor in reversed(self.adjacency_list[vertex]):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем? Что за естественный порядок обхода?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants